/**
 * 财务事件列表js
 */

app.controller('btnCtrl', ['$scope', '$http', BtnController]);
function BtnController($scope, $http){
	//列表
	$scope.bindBtn = function(event) {
		switch(event){
			case 'event-to-refresh':
			{
				$scope.showModalLink('/web/finance/tcwFinancesEventGroups/toAdd', '请选择需要刷新的店铺/日期');
				break;
			}
			case 'event-to-import'://主表信息导入
			{
				$scope.showModalLink('/toImport?menuId=' + 81, '批量导入');
				break;
			}
			case 'LAYTABLE_EXPORT_DATA':
			{
				$scope.doExport('/api/inter/tcwFinancesEventGroups/export');
				break;
			}
		};
	}
}


//双击
app.controller('dbClickCtrl', ['$scope', '$http', DbClickController]);
function DbClickController($scope, $http){
	$scope.doubleClick = function(data) {
		window.top.add_tab("财务事件明细","/indexCommonOfMenu?menuId=82");
	}
}

